package cc.xpcas.raft;

import java.util.*;

import cc.xpcas.raft.codec.Codec;
import cc.xpcas.raft.network.Address;
import lombok.Data;

/**
 * @author xp
 */
@Data
public class Configuration {

    private int nodeNum;

    private int serverId;

    private Address address;

    private Map<Integer, Address> peers;

    private Codec codec;

    private long votingTimeout; // in ms

    private long heartbeatCheckInterval; // in ms

    private long heartbeatInterval; // in ms

    private long heartbeatTimeout; // in ms

    private int appendEntriesLimit;
}
